package com.woniuxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.pojo.Goods;
import com.woniuxy.pojo.dto.GoodsSelectDTO;
import com.woniuxy.pojo.dto.InventoryDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 29331
* @description 针对表【t_goods(商品信息表)】的数据库操作Service
* @createDate 2025-06-03 10:37:42
*/
public interface GoodsService extends IService<Goods> {

    Page<Goods> getGoodsByType(Integer typeId, Integer pageNum, Integer pageSize);

    void updateInventory(Long id, InventoryDTO inventoryDTO);


    void addGoods(Goods goods);

    String removeCategoryByIds(List<Long> ids);

    String upGoodsByIds(List<Long> ids);

    void deleteGoodsByIds(List<Long> ids);

    Goods selectGoodsById(Long id);

    void updateGoodsById(Goods goods, Long id);

    List<Goods> selectGoods(GoodsSelectDTO goodsSelectDTO);
}
